<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:31:"./tpl/admin/template/index.html";i:1638926190;s:27:"./tpl/admin/common/top.html";i:1636097721;s:30:"./tpl/admin/common/bottom.html";i:1636098083;}*/ ?>
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>后台管理面板</title>
  <!-- 告诉浏览器该页面是自适应布局 -->
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  <!-- Bootstrap 3.3.7 -->
<link rel="stylesheet" href="/static/admin/adminlte/bower_components/bootstrap/dist/css/bootstrap.min.css">
<!-- Font Awesome -->
<link rel="stylesheet" href="/static/admin/adminlte/bower_components/font-awesome/css/font-awesome.min.css">
<!-- Ionicons -->
<link rel="stylesheet" href="/static/admin/adminlte/bower_components/Ionicons/css/ionicons.min.css">
<!-- Theme style -->
<link rel="stylesheet" href="/static/admin/adminlte/dist/css/AdminLTE.min.css">
<!-- AdminLTE 皮肤。
   从 css/skins 目录下选择一个皮肤，以减少负载，而不是下载所有皮肤。 -->
<link rel="stylesheet" href="/static/admin/adminlte/dist/css/skins/_all-skins.min.css">

<!-- Date Picker -->
<link rel="stylesheet" href="/static/admin/adminlte/bower_components/bootstrap-datepicker/dist/css/bootstrap-datepicker.min.css">
<!-- Datetime Picker -->
<link rel="stylesheet" href="/static/admin/adminlte/bower_components/bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css">
<!-- Daterange picker -->
<link rel="stylesheet" href="/static/admin/adminlte/bower_components/bootstrap-daterangepicker/daterangepicker.css">

<link rel="stylesheet" href="/static/admin/sweetalert/dist/sweetalert2.min.css">

<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- 警告：Respond.js 不支持 file:// 方式查看（即本地方式查看）-->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->

<!-- Google Font -->
<!--<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">-->

<!-- My CSS -->
<link rel="stylesheet" href="/static/admin/adminlte/style.css">
<!-- jQuery 3 -->
<script src="/static/admin/adminlte/bower_components/jquery/dist/jquery.min.js"></script>
<!--webuploader-->
<link rel="stylesheet" type="text/css" href="/static/admin/webuploader-0.1.5/webuploader.css">
</head>
<body class="hold-transition skin-blue sidebar-mini">	
<div class="wrapper">
    <div class="content-wrapper" style="margin-left: 0 !important;">
        <!--页眉-->
        <section class="content-header">
          <h1>模版管理</h1>
        </section>
        <!--内容开始-->
        <section class="content">
            <div class="search">
               <form class="form-inline">
                 <input class="btn btn-flat btn-primary m_10" onclick="location.href='<?php echo url('index'); ?>'" type="button" value="显示全部">
                 <a class="btn btn-flat btn-success m_10 f_r" href='<?php echo url('add'); ?>'><i class="fa fa-plus m-r-10"></i>添 加</a>
               </form> 
            </div>
            <!--数据表开始-->
            <div class="row">
                <div class="col-xs-12">
                  <div class="box">
                    <div class="box-header">
                    <!-- /.box-header -->
                    <div class="box-body table-responsive no-padding">
                      <table class="table table-bordered table-hover">
                        <tr>
                          <th class="t_c">文件名称</th>
                          <th class="t_c">文件大小</th>
                          <th class="t_c">修改时间</th>
                          <th class="t_c">操作</th>
                        </tr>
                        <?php if(is_array($list) || $list instanceof \think\Collection || $list instanceof \think\Paginator): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "$empty" ;else: foreach($__LIST__ as $key=>$list): $mod = ($i % 2 );++$i;?>
                        <tr>
                          <td class="t_c"><?php echo $list['filename']; ?></td>
                          <td class="t_c"><?php echo $list['filesize']; ?></td>
                          <th class="t_c"><?php echo date("Y-m-d H:i:s", $list['filemtime']); ?></th>
                          <td class="t_c">
	                          <a class="btn btn-flat btn-info btn-xs" href="<?php echo url('edit',['file'=>$list['filename'],'type'=>$type]); ?>">
                                <i class="fa fa-edit"></i> 编辑
                              </a>
                              <a class="btn btn-flat btn-warning btn-xs list_del" data-id="<?php echo $list['filename']; ?>">
                                <i class="fa fa-trash-o"></i> 删除
                              </a>
                          </td>
                        </tr>
                        <?php endforeach; endif; else: echo "$empty" ;endif; ?>
                      </table>
                    </div>
                    <!-- /.box-body -->
                  </div>
                  <!-- /.box -->
                </div>
              </div>
            <!--数据表结束-->
        </section>
        <!-- right col -->
      </div>
      <!-- /.row (main row) -->

    </section>
        <!--内容结束-->
    </div>
</div>
  <!-- jQuery UI 1.11.4 -->
<script src="/static/admin/adminlte/bower_components/jquery-ui/jquery-ui.min.js"></script>
<!-- Resolve conflict in jQuery UI tooltip with Bootstrap tooltip -->
<script>
  $.widget.bridge('uibutton', $.ui.button);
</script>
<!-- Bootstrap 3.3.7 -->
<script src="/static/admin/adminlte/bower_components/bootstrap/dist/js/bootstrap.min.js"></script>

<!-- daterangepicker -->
<script src="/static/admin/adminlte/bower_components/moment/min/moment.min.js"></script>
<script src="/static/admin/adminlte/bower_components/bootstrap-daterangepicker/daterangepicker.js"></script>
<!-- datepicker -->
<script src="/static/admin/adminlte/bower_components/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js"></script>
<script src="/static/admin/adminlte/bower_components/bootstrap-datepicker/js/locales/bootstrap-datepicker.zh-CN.js"></script>
<!-- datetimepicker -->
<script src="/static/admin/adminlte/bower_components/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
<script src="/static/admin/adminlte/bower_components/bootstrap-datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js"></script>
<!-- FastClick -->
<script src="/static/admin/adminlte/bower_components/fastclick/lib/fastclick.js"></script>
<!-- AdminLTE App -->
<script src="/static/admin/adminlte/dist/js/adminlte.min.js"></script>
<!-- SlimScroll -->
<script src="/static/admin/adminlte/bower_components/jquery-slimscroll/jquery.slimscroll.min.js"></script>
<!-- AdminLTE dashboard 演示（仅供演示使用） -->
<!--<script src="/static/admin/adminlte/dist/js/pages/dashboard.js"></script>-->
<!-- AdminLTE for demo purposes -->
<!--<script src="/static/admin/adminlte/dist/js/demo.js"></script>-->

<script src="/static/admin/sweetalert/dist/sweetalert2.min.js"></script>
<script src="/static/admin/sweetalert/lib/es6-promise.min.js"></script>

<script src="/static/admin/adminlte/my.js"></script>

<script>
	//删除
	$(".list_del").click(function(){
		var url = "<?php echo url('deletes',['type'=>$type]); ?>";
		var id = $(this).data("id");
		delOne(url,id)
	})
</script>
</body>
</html>    